package com.power.using.mydaggerp.presenter.home;

import android.support.annotation.NonNull;

import com.power.using.mydaggerp.contract.home.HomeMainContract;
import com.power.using.mydaggerp.model.home.HomeMainModel;

/**
 * Created by 聪明一只哈 on 2019/10/11.
 * Time: 2019/10/11  9:21
 */
public class HomeMainPresenter extends HomeMainContract.HomeMainPresenter{

    @NonNull
    public static HomeMainPresenter newInstance(){
        return new HomeMainPresenter();
    }

    @Override
    public void getTabList() {
        if(mIView==null||mIModel==null){
            return;
        }
        mIView.showTabList(mIModel.getTabs());

    }

    @Override
    protected HomeMainContract.IHomeMainModel getModel() {
        return HomeMainModel.newInstance();
    }

    @Override
    public void onStart() {

    }
}
